﻿using Laboratory.Projects;
using Laboratory.Projects.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Laboratory.Web.Controllers
{
    public class ProjectController : Controller
    {
        IProjectService _projectService;

        public ProjectController(IProjectService projectService)
        {
            _projectService = projectService;
        }


        // GET: Project
        public ActionResult Index()
        {
            var input = new CreateProjectInput()
            {
                Name = "温州2"
            };
            _projectService.CreateCity(input);


            return View();
        }


        public ActionResult Create()
        {
            var input = new CreateProjectInput()
            {
                Name = "温州"
            };
            _projectService.CreateCity(input);
            return Content("OK");
        }

    }
}